<#include "../common/common_ctx.ftl" />
<!DOCTYPE html>
<html	xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" type="text/css" href="${ctx}/static/plugins/layuiadmin/layui/css/layui.css"/>
    <title><#if articleEntity?? &&
        articleEntity.id??>编辑<#else>添加</#if>文章管理详细信息</title>
</head>
<body>

<div class="layui-form" lay-filter="form-submit" style="padding: 20px 30px 0 0;">
    <input type="hidden" name="id" value="${(articleEntity.id)!}" />
        <div class="layui-form-item">
            <label class="layui-form-label">作者主键</label>
            <div class="layui-input-inline">
                    <input type="text" class="layui-input" name="authorId" value="${(articleEntity.authorId)!}" autocomplete="off"
                           lay-verify="required" lay-reqtext="请填写正确的作者主键" />

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">标题</label>
            <div class="layui-input-inline">
                    <input type="text" class="layui-input" name="title" value="${(articleEntity.title)!}" autocomplete="off"
                           lay-verify="required" lay-reqtext="请填写正确的标题" />

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">文章类型 1：原创 2：转载 3：翻译</label>
            <div class="layui-input-inline">
                    <input type="text" class="layui-input" name="type" value="${(articleEntity.type)!}" autocomplete="off"
                           lay-verify="required" lay-reqtext="请填写正确的文章类型 1：原创 2：转载 3：翻译" />

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">发布形式 1：公开 2：私密 3：粉丝可见 4：VIP可见</label>
            <div class="layui-input-inline">
                    <input type="text" class="layui-input" name="publishType" value="${(articleEntity.publishType)!}" autocomplete="off"
                           lay-verify="required" lay-reqtext="请填写正确的发布形式 1：公开 2：私密 3：粉丝可见 4：VIP可见" />

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">内容</label>
            <div class="layui-input-inline">
                    <input type="text" class="layui-input" name="context" value="${(articleEntity.context)!}" autocomplete="off"
                           lay-verify="required" lay-reqtext="请填写正确的内容" />

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">访问数</label>
            <div class="layui-input-inline">
                    <input type="text" class="layui-input" name="visibleNum" value="${(articleEntity.visibleNum)!}" autocomplete="off"
                           lay-verify="required" lay-reqtext="请填写正确的访问数" />

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">收藏数</label>
            <div class="layui-input-inline">
                    <input type="text" class="layui-input" name="collectNum" value="${(articleEntity.collectNum)!}" autocomplete="off"
                           lay-verify="required" lay-reqtext="请填写正确的收藏数" />

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">审核人</label>
            <div class="layui-input-inline">
                    <input type="text" class="layui-input" name="checkUserId" value="${(articleEntity.checkUserId)!}" autocomplete="off"
                           lay-verify="required" lay-reqtext="请填写正确的审核人" />

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">审核日期</label>
            <div class="layui-input-inline">
                    <input type="text" class="layui-input date-class" name="checkDate" value="<#if articleEntity?? && articleEntity.checkDate??>${(articleEntity.checkDate)?replace("T", " ")!}</#if>" autocomplete="off"
                           lay-verify="required" lay-reqtext="请填写正确的审核日期" />

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">审核消息</label>
            <div class="layui-input-inline">
                    <input type="text" class="layui-input" name="checkMessage" value="${(articleEntity.checkMessage)!}" autocomplete="off"
                           lay-verify="required" lay-reqtext="请填写正确的审核消息" />

            </div>
        </div>

    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="LAY-back-submit" id="LAY-back-submit" value="确认">
    </div>
</div>
<script type="text/javascript" src="${ctx}/static/plugins/layuiadmin/layui/layui.js"></script>
<script type="text/javascript">
    layui.use(['form'], function() {
        var form = layui.form;
    });


</script>

</body>
</html>